package Test1;

import Test1.Role;

public class Test {
    public static void main(String[] args) {
        //while(true) {
            Role r1 = new Role("张德明",100,'男');
            Role r2 = new Role("赵子涵",100,'女');
            r1.showRole();
            r2.showRole();
            while(true){
                r1.attack(r2);
                if(r2.getBlood() == 0){
                    System.out.println(r1.getName() + "K.O了" + r2.getName());
                    break;
                }
                r2.attack(r1);
                if(r1.getBlood() == 0){
                    System.out.println(r2.getName() + "K.O了" + r1.getName());
                    break;
                }
            }
            System.out.println("----------------------------------------------");
        }
//    }
}